package com.softtown.modules.dapai.dao;

import com.softtown.common.dao.BaseDao;
import com.softtown.modules.dapai.dto.CompWarehouseOrderDTO;
import com.softtown.modules.dapai.dto.CompWarehouseOrderDetailDTO;
import com.softtown.modules.dapai.entity.CompWarehouseOrderDetailEntity;
import com.softtown.modules.dapai.entity.CompWarehouseOrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface CompWarehouseOrderDao extends BaseDao<CompWarehouseOrderEntity> {

    List<CompWarehouseOrderDTO> getWarehouseOrderPageList(@Param("compId")Long compId,@Param("pram") String pram );

    List<CompWarehouseOrderDetailDTO> getWarehouseOrderDetailPageList(@Param("compId")Long compId, @Param("pram") String pram );

    CompWarehouseOrderEntity getWarehouseOrderById(@Param("compId")Long compId, @Param("id")Long id);

    List<CompWarehouseOrderDetailEntity> getWarehouseOrderDetailList(@Param("compId")Long compId, @Param("id")Long id);

    void deleteWarehouseOrder(@Param("compId")Long compId, @Param("id")Long id);

    void deleteDetail(@Param("compId")Long compId, @Param("id")Long id);

    void updateMacStock(@Param("compId")Long compId, @Param("id")Long id, @Param("stock")int stock);

}
